Skip to content

Conversation

migmartri
Copy link
Member

chainloop auth delete-account was failing with a SQL constraint error.

This is due to the fact that the organization we might be deleting is referenced by other tables, cas_backends, org_invitations and so on.

This code adds the proper reference handling so now deleting the org also deletes these rows.

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@migmartri migmartri merged commit ed792fb into chainloop-dev:main Nov 9, 2023
@migmartri migmartri deleted the fix-deletion branch November 9, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants